<?php

use kartik\detail\DetailView;

/* @var $this yii\web\View */
/* @var $model backend\modules\logs\models\CreditOrderLog */
?>
<div class="credit-order-log-view">

    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
            'id',
            'credit_order_id',
            'time:datetime',
//            'post_data:ntext',
            [
                'label' => 'post_data',
                'value' => '<pre>' . \common\components\tools\Tools::getOutCache(  unserialize($model->post_data)).'</pre>',
                'format' => 'raw',
            ],
            'send_return_msg',
//            'credit_order_data:ntext',
            [
                'label' => 'credit_order_data',
                'value' => '<pre>' . \common\components\tools\Tools::getOutCache(  unserialize($model->credit_order_data)).'</pre>',
                'format' => 'raw',
            ],
            'old_status',
            'new_status',
            'api_return_code',
            'api_return_msg',
            'serial_number',
        ],
    ]) ?>

</div>
